import com.woniuxy.Person;
import com.woniuxy.autowire.Man;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class autowireTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("appliactionContext.xml");
        Man man = applicationContext.getBean("man", Man.class);
        System.out.println(man);
    }
}
